// ------------任务优先级枚举-------------------------------------------------------------------------------------
export const TASK_PRIORITY_ENUM = {
  HIGH: 0,
  MEDIUM: 1,
  LOW: 2,
}

export const TASK_PRIORITY_MAP = {
  0: '高',
  1: '中',
  2: '低',
}


//-------------------------------------------------------------------------------------
export const TASK_PRIORITY_OPTIONS = Object.keys(TASK_PRIORITY_MAP).map((key) => {
  return {
    label: TASK_PRIORITY_MAP[key],
    value: key,
  }
})



//  ------------任务状态枚举-------------------------------------------------------------------------------------
export const TASK_STATUS_ENUM = {
  inProgress: 0,
  FINISHED: 1,
  OUTDATE: 2,
}

export const TASK_STATUS_MAP = {
  0: '进行中',
  1: '已完成',
  2: '过期',
}


//-------------------------------------------------------------------------------------
export const TASK_STATUS_OPTIONS = Object.keys(TASK_STATUS_MAP).map((key) => {
  return {
    label: TASK_STATUS_MAP[key],
    value: key,
  }
})


